package com.chandra.pos.customer.service.impl;

import com.chandra.pos.common.model.TransactionType;
import com.chandra.pos.customer.dao.entity.CustomerOrderEntity;
import com.chandra.pos.customer.dao.entity.CustomerPaymentEntity;
import com.chandra.pos.customer.dao.entity.TransactionEntity;
import com.chandra.pos.customer.model.*;
import com.chandra.pos.customer.service.CustomerManager;
import com.chandra.pos.customer.service.CustomerRole;
import com.chandra.pos.customer.service.TransactionManager;
import com.chandra.pos.customer.service.TransactionRole;
import com.chandra.pos.payment.model.PaymentModel;
import com.chandra.pos.payment.service.PaymentRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import javax.persistence.EntityNotFoundException;
import javax.transaction.Transactional;

/**
 * Created by Admin on 7/3/14.
 */
@Service
public class TransactionManagerImpl implements TransactionManager {


    @Autowired
    private TransactionRole transactionRole;

    @Override
    public TransactionList getTransactionHistory(TransactionFilter customerFilter) {
        return transactionRole.getTransactionHistory(customerFilter);
    }



}
